﻿using System.Collections.Generic;
using AbpOne.ToolKits.Base.Paged;

namespace AbpOne.ToolKits.Base {
    /// <summary>
    /// 分页响应实体实现类
    /// </summary>
    public class PagedList<T> : ListResult<T>, IPagedList<T> {
        public int Total { get; set; }

        public PagedList() {
        }

        public PagedList(int total, IReadOnlyList<T> result) : base(result) {
            Total = total;
        }
    }
}